import $axios from './index.js'

// 标签列表
function tagList(data) {
  const url = '/tag/backendIndex'
  return $axios.get(url, data)
}
// 标签添加
function tagSave(data) {
  const url = '/tag/save'
  return $axios.post(url, data)
}
// 标签编辑
function tagUpdate(data) {
  const url = '/tag/update'
  return $axios.post(url, data)
}
// 标签删除
function tagDelete(data) {
  const url = '/tag/delete'
  return $axios.post(url, data)
}

export default {
  tagList,
  tagSave,
  tagUpdate,
  tagDelete
}
